package com.party.business.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.party.business.domain.TopicLibrary;
import org.apache.ibatis.annotations.Mapper;

/**
 * 专题Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-18
 */
@Mapper
public interface TopicLibraryMapper  extends BaseMapper<TopicLibrary>
{
    /**
     * 查询专题
     *
     * @param id 专题主键
     * @return 专题
     */
    public TopicLibrary selectTopicLibraryById(Long id);

    /**
     * 查询专题列表
     *
     * @param topicLibrary 专题
     * @return 专题集合
     */
    public List<TopicLibrary> selectTopicLibraryList(TopicLibrary topicLibrary);

    /**
     * 新增专题
     *
     * @param topicLibrary 专题
     * @return 结果
     */
    public int insertTopicLibrary(TopicLibrary topicLibrary);

    /**
     * 修改专题
     *
     * @param topicLibrary 专题
     * @return 结果
     */
    public int updateTopicLibrary(TopicLibrary topicLibrary);

    /**
     * 删除专题
     *
     * @param id 专题主键
     * @return 结果
     */
    public int deleteTopicLibraryById(Long id);

    /**
     * 批量删除专题
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTopicLibraryByIds(Long[] ids);
}
